//
//  Step2Label.m
//  Gunz
//
//  Created by Joggy on 16/4/15.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "Step2Label.h"
#import "GZConst.h"

@implementation Step2Label

-(instancetype)initWithTitle:(NSString *)title lab:(NSString *)label {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 55)];
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 128*proportion, 17)];
    titleLab.textColor = TEXT_TITLE_COLOR;
    titleLab.font = [UIFont systemFontOfSize:14];
    titleLab.textAlignment = NSTextAlignmentRight;
    titleLab.text = title;
    [self addSubview:titleLab];
    UILabel *labOne = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 175, 17)];
    labOne.layer.position = CGPointMake(titleLab.frame.size.width + 105, titleLab.layer.position.y);
    labOne.textColor = TEXT_TITLE_COLOR;
    labOne.font = [UIFont systemFontOfSize:17];
    labOne.text = label;
    [self addSubview:labOne];
    return self;
}

@end
